cmake_minimum_required(VERSION 3.8)

project(my_utils)

# Default to C++17
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(GTest REQUIRED)

# 添加头文件搜索路径
include_directories(
  ${PROJECT_SOURCE_DIR}/include
)

# 生成静态库
add_library(my_utils STATIC 
  src/my_utils.cpp
)

# 测试文件
add_subdirectory(test)